package com.lucun.insurance.service;

import com.lucun.insurance.db.entity.Insure;
import com.lucun.insurance.db.entity.Settlement;
import com.lucun.insurance.util.JsonResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface SettlementService {
    //    添加理赔信息
    JsonResult<?> insert(Settlement sett);

    //    查询所有
    List<Settlement> findAll();

    //根据id查询
    List<Settlement> findById(Settlement id);
    //根据投保人（申请人）姓名查询理赔信息
    JsonResult<?> findByName(Settlement settlement);

    //    删除
    JsonResult<?> delete(Settlement sett);

    //    修改
    JsonResult<?> update(Settlement sett);
}
